home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / srefv12i.zip / dir.doc < prev    next >
Text File  |  1997-03-17  |  10KB  |  201 lines

  1.      !DIR: SRE-Filter's built-in directory display facility for SRE-Filter
  2.  
  3. !DIR is SRE-Filter's built in directory display facility.
  4.  
  5.  * It's primary use is by the !CREATE option of AUTO_NAME; which instructs
  6.    SRE-Filter to generate a directory listing "when there is no INDEX file".
  7.  * !DIR can also be called explicitly as one of SRE-Filter's
  8.    "special commands".
  9.  * To improve performance, !DIR will "cache" directory listings;
  10.    which it will use (after checking for changes).
  11.  * For those interested in a more configurable directory display procedure,
  12.    we recommend SRE-Filter's GETAFILE add-on.
  13.  
  14. By default, !DIR displays a "sorted by name" directory listing with a
  15. descriptive icon, a filename (that links to the file), creation date,
  16. and size.  You can change display options by modifying two SRE-Filter
  17. parameters, DIR_EXCLUSION and DIR_OPTIONS.
  18.  
  19. 1) DIR_EXCLUSION: a space delimited  list of 'files and subdirectories'
  20.                     to exclude. Note that the * wildcard can be used.
  21.       Example: dir_exclusion='HTACCESS.  DESCRIBE.TXT /PRIVATE  *.CNT '
  22.  
  23. 2) DIR_OPTIONS: A space delimited list  of display options.
  24.    The following lists the available options:
  25.  
  26.     AUTO_DESCRIBE == Try to create descriptions. This is done by extracting
  27.                      <TITLE> and <META NAME="DESCRIPTION" Content="xx">
  28.                      headers from HTML files,  the -z comments or
  29.                      FILE_ID.DIZ files from .ZIP files, and the beginning of
  30.                      plain text files.
  31.  
  32.     DESCRIBE=filename.ext == Use one line descriptions that are contained
  33.                              in filename.ext. If just a DESCRIBE is included,
  34.                              the filename.ext is assumed to be DESCRIBE.TXT
  35.                              (see below for more details)
  36.  
  37.     DESC_LEN=nnn == Maximum characters to display in the description (ignored
  38.                     if neither DESCRIBE or AUTO_DESCRIBE options are included)
  39.  
  40.     DATEFMT=x == The date format used; where x is one of B C D E M N O S U W.
  41.              Where, given a date of 27 Aug 1988
  42.                 B:    725975
  43.                 D:    240
  44.                 E:    27/08/88
  45.                 L:    27 August 1988
  46.                 M:    August
  47.                 N:    27 Aug 1988
  48.                 O:    88/08/27
  49.                 S:    19880827
  50.                 U:    08/27/88
  51.                 W:    Saturday
  52.  
  53.            Note that if "x" is not one of these, N is used.
  54.  
  55.  
  56.     HEADERFILE=filename.ext == A file to use as a "header".  If no
  57.                                filename.ext is given, then DIR.HDR
  58.                                is looked for. See below for details.
  59.     FOOTERILE=filename.ext == A file to use as a "footer".  If no
  60.                                filename.ext is given, then DIR.FTR
  61.                                is looked for. See below for details.
  62.  
  63.     MULTI_SEND  == If the client's browser supports "Connection:Keep-Alive"
  64.                    (i.e.; NetScape 1.3), and the directory contains more then
  65.                    20 files, and AUTO_DESCRIBE will be attempted ..
  66.                    then MULTI_SEND instructs  !DIR to display
  67.                    "status" messages as the files are processed. These
  68.                    status messages (written after every 15 files) are
  69.                    sequentially displayed; and after all files have been
  70.                    processed, they will be overwritten by the directory
  71.                    listing.
  72.                    Note that older browsers (WebEx) do not support "Connection:
  73.                    Keep-Alive"; !DIR will detect this and not attempt to
  74.                    send status messages to such browsers.
  75.  
  76.     NOCACHE == Do NOT use the !DIR cache (force recreation of the
  77.                directory listing)
  78.  
  79.     NOSIZE ==  Suppress display of size.
  80.     NOTIME ==  Suppress display of creation time
  81.     NODATE ==  Suppress display of creation time and date
  82.     NOICON ==  Suppress icon display
  83.     NOSORT ==  Suppress sort-by-name
  84.     NODIR  ==  Suppress subdirectory display (display files only)
  85.     NO_RECURSE_DIR == Do NOT Use DIR on subsequent directories. Instead, use
  86.                     a standard link to the directory.  Otherwise,
  87.                     !DIR will traverse the directory tree (clicking
  88.                     on a child directory will re-invoke !DIR).
  89.     SHOWPARENT ==  Allow client to go up to parent. This CAN be used with
  90.                    the NODIR option.
  91.     SIZEFMT=aaaaa == The size format: aaaaa=ABBREV means 13K,
  92.                                       aaaaa=0 means 13,012
  93.  
  94.     TABLE  == use an HTML TABLE to display (otherwise, use <PRE> formatting)
  95.     TABLE_BORDER=nnn  == Size of border (if table used). If nnn=0, then no
  96.                          border is shown.
  97.     TIMEFMT=nn ==  The time format: nn=24 means use 13:01, nn=0 means  1:01p
  98.  
  99.  
  100.   Examples:
  101.      DIR_OPTIONS='notime describe no_recurse_dir datefmt=u nocache '
  102.      DIR_OPTIONS='showparent table auto_describe desc_len=300 multi_send '
  103.  
  104.   In addition to the DIR_OPTIONS parameter, you can append options
  105.   after the directory name (the directory name MUST immediately follow
  106.   the ?.  Seperate each option with a space (or a + if you are hand
  107.   coding a URL), and NOT with a &. The options are the same as above.
  108.        For example:  /DIR?dir1+nosize+auto_describe
  109.  
  110.   Each of these options can be specified as is, or as option=0,
  111.   which "turns them off".  This =0 form is useful if you wish
  112.   to override a "parameter" settting with "request selector" option.
  113.   Alternatively, option=1 "turns them on" (note that turning on a
  114.   NOxxx option may mean suppressing a piece of the file info display).
  115.  
  116. Notes on the DESCRIBE option:
  117.  
  118.   * The description file (say, DESCRIBE.TXT) is assumed to be in the
  119.     "own directory". Thus, seperate directories must have their "own"
  120.     description file.
  121.  
  122.   * The DESCRIBE option expects a  "filename.ext" after an
  123.     = sign. If you leave this off, DESCRIBE.TXT is used (if available).
  124.  
  125.   * The description file (i.e.; DESCRIBE.TXT) file should be organized as
  126.       FILE1.xxx a description
  127.       file2.yyy  another description
  128.       /subdir1      a subdirectory description
  129.  
  130.   * Note that descriptions start with a file name (or a directory name,
  131.     which must be preceded by a /) followed by the description
  132.     (seperated from the filename by at least one space).
  133.  
  134.   * The description must be on one (arbitrarily long) line. However, it will
  135.     be formatted to fit in the (possibly multi-line) display area.
  136.     This is in contrast with several SRE-Filter add-ons, which permit
  137.     multi-line descriptions.
  138.  
  139.   * When used with AUTO_DESCRIBE, if an explicit description is found
  140.     in the description file, it is always used. That is, AUTO_DESCRIBE
  141.     only applies to files that do NOT have an entry in the description file
  142.     (assuming the DESCRIBE option is used).
  143.  
  144.   * If you want to suppress all descriptions (it's much faster when you
  145.     don't display descriptions), set AUTO_DESCRIBE=0 and DESCRIBE=0.
  146.  
  147.  
  148. Notes on caching
  149.  
  150.   * Caching is meant to be used in conjunction with the AUTO_DESCRIBE
  151.     and DESCRIBE=filename option. If you are not including descriptions,
  152.     then caching will probably not help a lot.
  153.  
  154.  *  A fairly simple caching algorithim is used, which will limit
  155.     the cache's usefulness if !DIR is used extensively.
  156.     If you intend to use !DIR extensively, you should consider
  157.     using the BBS add-on.
  158.  
  159.   * Caching uses files that are stored in the TEMPDATA_DIR directory
  160.     (typically, \GOSERVE\TEMP).  A _DIR.IDX file is used as a reference
  161.     index, and _nnnnn.DSH files are used as "directory cache" files.
  162.  
  163.   * SRE-Filter will check the file-stamps of all files and subdirectories
  164.     in the requested directory.  In addition, it will check the
  165.     dir_option and dir_exclusion parameters.  If any of these have
  166.     changed, the cache entry will not be used.
  167.     Note: actually, a CRC of this information is used; thus, on very rare
  168.           occasions SRE-Filter will NOT detect a change.
  169.  
  170.   * The DIR_CACHE_DURATION and DIR_CACHE_SIZE variables (set in SREFILTR.80)
  171.     are used to set the size and lifespan of entries in the directory
  172.     cache.  The default values are 3 days and 1Megabyte.
  173.     Note that about once a day, !DIR will (when invoked) clean up
  174.     the directory cache (say, get rid of entries that have somehow
  175.     become orphaned).
  176.  
  177.   * To suppress, on a request specific basis, SRE-Filter's use of this
  178.     cache; just include a NOCACHE option in the request selector (using the
  179.     !DIR?dirname+NOCACHE syntax). To permanently suppress  it,
  180.     set DIR_CACHE_SIZE=0
  181.  
  182.    * Cache entries are identified by both fully qualified directory,
  183.      and by the "option list and exclusion" lists.
  184.      Thus, multiple views of the same directory may be cached.
  185.  
  186. Notes on the HEADERFILE and FOOTERFILE options.
  187.  
  188.   * The header-file and footer-file is assumed to be in the "own" directory.
  189.   * If a HEADERFILE is specified, and exists, the default
  190.     header is NOT written.
  191.   * If a HEADERFILE is specified, it MUST contain a <BODY>
  192.     element. In all likelihood, that's why you'ld use it
  193.     (so that you could specify a <BODY BACKGROUND=xxx.gif> element)!
  194.   * The HEADERFILE option expects a  "filename.ext" after an
  195.     = sign. If you leave this off, DIR.HDR is used (if available).
  196.     Similarly, if no file exists after the FOOTERFILE, a DIR.FTR file
  197.     is used (if available).
  198.  
  199.  
  200. :End of DIR.DOC.
  201.